package com.study.proxy;

import com.study.entity.User;
import com.study.service.a.UserService;
import com.study.service.a.UserServiceImpl;

/**
 * @Author chenyeqing
 * @Date 2021/10/3 14:17
 */
public class UserServiceProxy implements UserService {
    private UserServiceImpl userService = new UserServiceImpl();
    @Override
    public void register(User user) {
        System.out.println("---log---");
        userService.register(user);
    }

    @Override
    public boolean login(String name, String password) {
        System.out.println("---log---");
        boolean login = userService.login(name, password);
        return login;
    }
}
